<?php
include '../inc/reuse/dbconfig.php';
$sql = "SELECT * FROM products ORDER BY products_id DESC limit 8";
$rsd = mysql_query($sql);
while($row = mysql_fetch_array($rsd)){
	$date = $row['modified_date_time'];
	$date = substr($date, 6,2)." ".date("M", mktime(0, 0, 0, substr($date, 4,2), 1))." ".substr($date, 0,4).", ".substr($date, 8,2).":".substr($date, 10,2);
	echo "<li><a href=\"../products_detail.php?products_id=".$row['products_id']."\" target=\"_blank\">".$row['products_name']."</a> <div class=\"lastupdate\">$date</div></li>";
}

?>